<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>时间处理</title>
    <script src="vue.js"></script>
</head>
<body>
<div id="app">
    <button type="submit" @click="update" @keydown="todo">submit{{count}}</button>
</div>
<script type="text/javascript">
    new Vue({
        el:'#app',
        data:{
            count:0
        },
        methods:{
            update:function(){
                this.count ++;
            },
            todo:function () {
                
            }
        }
    })
</script>
</body>
</html>